Skip to content

Conversation

@ekim1394
Copy link
Contributor

@ekim1394 ekim1394 commented Apr 12, 2025

Add initial backend API implementation using existing functions to replicate the same function calls needed in existing streamlit app

FastAPI Docs and Playground!
Screenshot 2025-04-11 223847

Added the following routes

POST /upload/{filetype}

  • filetype can be voter_records or petition_signatures
  • voter records is stored in app state
  • petition signatures is stored in local temp directory

POST /ocr

  • Loads all data and runs the OCR pipeline
  • Returns csv response of results

DELETE /clear

  • Clears out all the data that was loaded

Updated README on instructions to run and also fix some minor formatting issues

@ekim1394 ekim1394 changed the title add initial backend api feat: add initial backend using FastAPI Apr 12, 2025
@kvithayathil kvithayathil merged commit 9822e0a into civictechdc:main Apr 23, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Ballot-Initiative-Project Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants